<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="manageruser">
<head>
    <title>版本列表</title>
    <aside th:replace="temp :: Head"></aside>
</head>
<body class="cbp-spmenu-push">
<div class="main-content">
    <!--left-fixed -navigation-->
    <aside th:replace="temp :: menuAndHead"></aside>
    <!--left-fixed -navigation-->
    <!-- main content start-->
    <div id="page-wrapper">
        <div class="main-page">
            <aside th:replace="temp :: alert"></aside>
            <!--grids-->
            <div class="grids">
                <div class="progressbar-heading grids-heading">
                    <h2>项目列表</h2>
                </div>
                <div class="panel panel-widget">
                    <div class="tables">
                        <h4>项目</h4>
                        <table class="table">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>项目名称</th>
                                <th>版本名称</th>
                                <th>版本注解</th>
                                <th>是否发布</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="success" th:each="p,n:${objList}" th:class="${n.index}%2==0?'active':'success'">
                                <th scope="row" th:text="${p.id}"></th>
                                <td th:text="${p.projectName}"></td>
                                <td th:text="${p.editionName}"></td>
                                <td th:text="${p.context}"></td>
                                <td><button th:if="${p.state}==0" type="button" class="btn btn-success warning_2">发布</button>
                                    <button th:if="${p.state}==1" type="button" class="btn btn-info">已发布</button>
                                    <button th:if="${p.state}==2" type="button" class="btn btn-primary">有更新</button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <aside th:replace="temp :: pageNum"></aside>
                    </div>
                </div>
            </div>
            <!--//grids-->
        </div>
    </div>
    <!--footer-->
    <div class="dev-page">
        <!-- page footer -->
        <!-- dev-page-footer-closed dev-page-footer-fixed -->
        <div class="dev-page-footer dev-page-footer-fixed">
            <!-- container -->
            <div class="container">
                <div class="dev-page-footer-container">
                    <!-- loader and close button -->
                    <div class="dev-page-footer-container-layer">
                        <a href="#" class="dev-page-footer-container-layer-button"></a>
                    </div>
                </div>
                <!-- //container -->
            </div>
            <!-- /page footer -->
        </div>
        <!--//footer-->
    </div>
</div>
<aside th:replace="temp :: endJS"></aside>
</body>
</html>